﻿#ifndef CALIBDIALOG_H
#define CALIBDIALOG_H

#include <QDialog>
#include <QSettings>

namespace Ui {
class CalibDialog;
}

/**
 * @brief The CalibDialog class 显微镜测量尺寸标定对话框
 */
class CalibDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CalibDialog(QWidget *parent = nullptr);
    ~CalibDialog();
    void setNameLength(QString name, double pixels);
    double umPerPixel(){return um_per_pixel;}
private slots:
    void compute(const QString &text);
private:
    Ui::CalibDialog *ui;
    double m_length_um;
    double m_lenth_pixels;
    double um_per_pixel;
};

#endif // CALIBDIALOG_H
